package com.lb.shopguide.ui.fragment.guide.recommend;

import android.os.Bundle;

import com.lb.shopguide.R;
import com.lb.shopguide.base.BaseFragment;
import com.lb.shopguide.constants.AppConstant;

import java.nio.BufferUnderflowException;

/**
 * Create by kangzhao on 2018/12/6
 * <p>
 * only for judge
 */
public class FragmentVirtualActivity extends BaseFragment {
    private String url;
    private String name;


    public static FragmentVirtualActivity newInstance(String title, String url) {
        FragmentVirtualActivity fragmentVirtualActivity = new FragmentVirtualActivity();
        Bundle bundle = new Bundle();
        bundle.putString(AppConstant.WEB_TITLE, title);
        bundle.putString(AppConstant.WEB_URL, url);
        fragmentVirtualActivity.setArguments(bundle);
        return fragmentVirtualActivity;
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_ad;
    }

    @Override
    public void initData() {
        Bundle bundle = new Bundle();
        if (bundle.containsKey(AppConstant.WEB_TITLE)) {
            name = bundle.getString(AppConstant.WEB_TITLE);
            if (!name.equals("赚钱秘籍")) {
                name = "";
            }
        }
        if (bundle.containsKey(AppConstant.WEB_URL)) {
            url = bundle.getString(AppConstant.WEB_URL);
        }
    }

    @Override
    public void initView() {

    }

    @Override
    public void finishRefresh() {

    }

    @Override
    public void sessionOutOfDate() {

    }

    @Override
    public void requestError(String error) {

    }

    @Override
    public String getPageTag() {
        return null;
    }
}
